package com.elrichuang.userserver.domain.vo;

import com.elrichuang.userserver.domain.OrderRecord;
import com.elrichuang.userserver.enums.CandidateStatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class OrderVo implements Serializable {
	private static final long serialVersionUID = -3422248183078139343L;

	private Long orderId;

	private String deptName;

	private String userName;

	private String remarks;

	private String createBy;

	/**
	 * 结果时间
	 */
	private Date resultTime;

	private List<OrderRecord> records;

	/** 状态 */
	private String status;

	/**
	 * 状态字符串
	 */
	private String statusStr;

	public String getStatusStr()
	{
		return CandidateStatusEnum.fromCode(this.status).getInfo();
	}
}
